package org.jojo.sort;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.Random;

public class RandomArrayGenerator {
    public static int[]  generatorRandomArray(int length,int max){
        int[] result = new int[length];
        Random random = new Random();
        for(int i = 0;i<length;i++){
            result[i] = random.nextInt(max);
        }
        return result;
    }

    public static void main(String[] args) {
        int[] array = generatorRandomArray(10,100);
        System.out.println(Arrays.toString(array));
    }
}
